import {
	request
} from '../request.js'

const goodDetails = {
	goodDetails(params) {
		return request({
			method: 'Get',
			url: '/api/goods/front/goods/' + params

		})
	},
	goodDetailsact(params,actId) {
		return request({
			method: 'Get',
			url: '/api/goods/front/goods/' + params+'/'+actId
	
		})
	},
	getAct(actId) {
		return request({
			method: 'Get',
			url: '/api/cms/front/activity/gettimeGap/'+actId
		})
	},
	buyershow(params) {
		return request({
			method: 'Get',
			url: '/api/goods/front/buyershow/getList/' + params
	
		})
	},
	shopcart(params) {
		return request({
			method: 'Post',
			url: '/api/goods/front/cart/save',
			params:params
	
		})
	},
	goodsconcernsave(params) {
		return request({
			method: 'Post',
			url: '/api/goods/front/goodsconcern/save',
			params:params
	
		})
	},
	del(params){
		return request({
		  method: 'Post',
		  url: '/api/goods/front/goodsconcern/cancel',
		  params: params
		})
	}
}

export default goodDetails
